<template>
    <Card>
        <editor :cont="contHtml" @editCont="getCont"></editor>
    </Card> 
</template>

<script>
import Editor from '_c/editor'
import { getCont } from '../../api/sys/editor';
export default {
    mounted() {
        getCont().then(res => {
            this.contHtml = res.data.cont
        })
    },
    components: {
        Editor
    },
    data () {
        return {
            contHtml: ''
        }
    },
    methods: {
        // 获得编辑器的内容
        getCont(val){
            console.log(val)
        }
    }
}
</script>
